<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
<link type="text/css" rel="stylesheet" href="${pageContext.request.contextPath}/css/default.css" />
 
<script src="${pageContext.request.contextPath}/js/JS_CheckForm.js" language="JavaScript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.6.2.js"></script> 
<script type="text/javascript" src="${pageContext.request.contextPath}/js/xheditor/xheditor-1.1.6-zh-cn.min.js"></script>
<script src="${pageContext.request.contextPath}/js/jquery.floatbox.10.4.min.js" type="text/javascript"></script>
<script language="JavaScript">
 $(document).ready(function()  {
	 var s1=location.pathname;
     var i=s1.indexOf('/',2);	     
     var upImgUrlstr="http://"+location.host+s1.substring(0,i)+"/xheditor";
     
		 $('#elm1').xheditor({  
		 tools:'full',  
		 width:500,
		 skin:'default',    
		 upImgUrl: upImgUrlstr,  
		 upImgExt: "jpg,jpeg,gif,bmp,png",  
		 onUpload:insertUpload  
		 });  
		 
		 $(".changepicture").click(function () {
			    $.floatbox({
			        ajax: {
			            url: "changePicture.action?successId="+$(this).attr('id'),
			            before: "<p>Loading content</p>", //loading message while the request is being processed
			            finish: function () {
			               
			            }
			        },
			        fade: true
			    });
		  });
		 
		 });
 
 function insertUpload(){ alert("ok");}


</script>


<title>添加管理员</title>
</head>
<body bgcolor="#ffffff" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
    <s:form name="addAdmin" action="saveAdmin" method="POST" theme="simple">
  		<table height="100%" width="100%" cellspacing="1" cellpadding="2" border="0" bgcolor="#336600">
    		<tbody>
    			<tr> 
      				<td height="26" bgcolor="#669900" colspan="2">
      					<font color="#ffffff">::添加管理员</font>
      				</td>
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="10%" align="right">用户名：</td>
      				<td height="26" width="90%"> 
      				   <s:textfield name="admin.adminName" cssClass="bginput" size="70" maxLength="100"></s:textfield>
        				<font color="#ff0000">[必填]</font>
        			</td>
    			</tr>
    			<tr bgcolor="#eeeeee"> 
      				<td height="26" width="10%" align="right">密码：</td>
      				<td height="26" width="90%"> 
      					<s:password name="admin.adminPwd" cssClass="bginput" size="70" maxLength="100"></s:password>
        			</td>
    			</tr>
    			<tr bgcolor="#eeeeee" align="left"> 
	    			<td height="26" width="10%" align="right"></td>
 					<td height="30" width="90%"> 
 					   <s:submit value="保存"></s:submit>
              		   <input type="button" onclick="history.go(-1);" value="　返 回　" class="button" name="YL">
   					</td>
	    		</tr>
  			</tbody>
  		</table>
	</s:form>
</body>
</html>